/*
 * @Author: tyz
 * @Date: 2021-06-24 14:56:40
 * @LastEditTime: 2021-06-24 14:58:32
 * @Description: 服务监控配置文件
 * @FilePath: \nest_demo\src\config\statusMonitor.ts
 */
export default {
    pageTitle: 'Nest.js Monitoring Page', // 页面标题
    port: 3000, // 监听端口 - 必须和项目运行端口一致
    path: '/status',  // 自定义访问路由 -> xxxx:3000/status -> 浏览服务监控信息
    ignoreStartsWith: '/healt/alive',
    spans: [
      {
        interval: 1, // Every second
        retention: 60, // Keep 60 datapoints in memory
      },
      {
        interval: 5, // Every 5 seconds
        retention: 60,
      },
      {
        interval: 15, // Every 15 seconds
        retention: 60,
      },
    ],
    chartVisibility: {
      cpu: true,
      mem: true,
      load: true,
      responseTime: true,
      rps: true,
      statusCodes: true,
    },
    healthChecks: [],
  };
  